import asyncio
from random import randint
from pyrogram import filters
from app import app
from app.filters import custom_filters


@app.on_message(
    custom_filters.choujiang_bot
    & filters.regex(r"^新的抽奖已经创建[\s\S]+参与关键词：「(.+)」")
)
async def choujiang(client, message):
    await asyncio.sleep(randint(10, 30))
    await app.send_message(
        message.chat.id,
        f"{message.matches[0].group(1)}",
        reply_to_message_id=message.reply_to_message_id,
    )
